Event: "remove" Description: Sets a remove handler to exicute when the specified element is removed from the DOM. Returns: domElement, or $A object if chained. Note: This event utilizes the Mutation Observer API. https://developer.mozilla.org/en-US/docs/Web/API/MutationObserver Example: // Bind a remove handler to a specified DOM element. $A(targetElement).on("remove", function(MutationObject, targetElement, arrayOfRemovedNodes, BoundObjectOrDC, SavedData) { // Do something with targetElement or arrayOfRemovedNodes. // BoundObjectOrDC populates when the targetElement is bound using $A.bindObjects(), or is bound to a DC instance. // SavedData populates when saved event parameters are specified using the $A.on event syntax. (Help/$A API/DOM Events/On) });